package com.zjj.jvm2.memModel;

import java.util.ArrayList;

/**
 * @author zhanglei.zjj
 * @description 通过 jvisualvm 观察gc示例程序
 * @date 2023/3/5 23:40
 */
public class TestHeap {
    byte[] a = new byte[1024 * 100];

    public static void main(String[] args) throws InterruptedException {
        ArrayList<TestHeap> heapTests = new ArrayList<>();
        while (true) {
            heapTests.add(new TestHeap());
            Thread.sleep(10);
        }
    }
}
